package com.cz.nongyetongv5.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

public class JianDuJianChaPageAdapter extends FragmentPagerAdapter {

	private List<Fragment> activitys = null;

	public JianDuJianChaPageAdapter(FragmentManager fm, List<Fragment> activitys) {
		super(fm);
		this.activitys = activitys;
	}

	@Override
	public Fragment getItem(int position) {

		return activitys.get(position);
	}

	@Override
	public int getCount() {
		return activitys == null ? 0 : activitys.size();
	}

}
